<f:view
		xmlns="http://www.w3.org/1999/xhtml"
		xmlns:h="http://java.sun.com/jsf/html"
		xmlns:f="http://java.sun.com/jsf/core"
		xmlns:a4j="http://richfaces.org/a4j"
		xmlns:rich="http://richfaces.org/rich"
		xmlns:ui="http://java.sun.com/jsf/facelets"
		xmlns:itdep="http://itdep.bsuir.by/jsf"
		>
	<ui:decorate template="/facelets/template/mainTemplate.xhtml">
		<ui:define name="title">#{commonBundle.add} #{studentBundle.student}</ui:define>
		<ui:define name="center">
			<ui:decorate template="/facelets/template/centerTemplate.xhtml">
				<ui:define name="content">

					<ui:decorate template="/facelets/template/wizard/wizard.xhtml">
						<ui:param name="title" value="#{commonBundle.add} #{studentBundle.student}"/>
						<ui:param name="bean" value="#{studentBean}"/>

						<h:panelGroup rendered="#{studentBean.wizard.page eq 1}">
							<h:outputText value="#{personBundle.personName}"/>
							<ui:decorate template="/facelets/template/person/nameEdit.xhtml">
								<ui:param name="idPrefix" value="student"/>
								<ui:param name="person" value="#{studentBean.record}"/>
							</ui:decorate>
						</h:panelGroup>

						<h:panelGroup rendered="#{studentBean.wizard.page eq 2}">
							<ui:decorate template="/facelets/template/person/identityCardEdit.xhtml">
								<ui:param name="idPrefix" value="student"/>
								<ui:param name="identityCard" value="#{studentBean.record.identityCard}"/>
							</ui:decorate>
						</h:panelGroup>

						<h:panelGroup rendered="#{studentBean.wizard.page eq 3}">
							<h:outputText value="#{personBundle.personPrivate}"/>
							<ui:decorate template="/facelets/template/person/personalInfoEdit.xhtml">
								<ui:param name="idPrefix" value="student"/>
								<ui:param name="person" value="#{studentBean.record}"/>
							</ui:decorate>
						</h:panelGroup>

						<h:panelGroup rendered="#{studentBean.wizard.page eq 4}">
							<h:outputText value="#{personBundle.personPrivate}"/>

							<div align="center">
								<h:outputText value="#{dictionaryBundle.socialStatus}"
											  styleClass="requiredField"/>
							</div>
							<br/>
							<br/>
							<rich:pickList id="statusPickList" value="#{studentBean.socialStatus}"
										   converter="#{studentBean.converter}"
										   rendered="#{studentBean.resultListFilled}"
										   copyAllControlLabel="#{commonBundle.addAll}"
										   removeAllControlLabel="#{commonBundle.removeAll}"
										   copyControlLabel="#{commonBundle.addItems}"
										   removeControlLabel="#{commonBundle.remove}"
										   sourceListWidth="100px" targetListWidth="100px" listsHeight="100px">
								<itdep:entitySelectItems entityType="social-status"
														 format="{i18n.description}"/>
							</rich:pickList>
						</h:panelGroup>

						<h:panelGroup rendered="#{studentBean.wizard.page eq 5}">
							<h:outputText value="#{studentBundle.studentParents}"/>
							<ui:decorate template="/facelets/template/student/studentParentsEdit.xhtml">
								<ui:param name="idPrefix" value="studentFather"/>
								<ui:param name="parent" value="#{studentBean.studentFather}"/>
								<ui:param name="address" value="false"/>
							</ui:decorate>
						</h:panelGroup>

						<h:panelGroup rendered="#{studentBean.wizard.page eq 6}">
							<h:outputText value="#{studentBundle.studentParents}"/>
							<ui:decorate template="/facelets/template/student/studentParentsEdit.xhtml">
								<ui:param name="idPrefix" value="studentMother"/>
								<ui:param name="parent" value="#{studentBean.studentMother}"/>
								<ui:param name="address" value="false"/>
							</ui:decorate>
						</h:panelGroup>

						<h:panelGroup rendered="#{studentBean.wizard.page eq 7}">
							<h:outputText value="#{personBundle.address}"/>
							<ui:decorate template="/facelets/template/person/addressEditCompact.xhtml">
								<ui:param name="idPrefix" value="studentAddressWiz"/>
								<ui:param name="address" value="#{studentBean.address}"/>
								<ui:param name="addrBean" value="#{addressBean}"/>
								<ui:param name="addrType" value="true"/>
								<ui:param name="accomod" value="true"/>
							</ui:decorate>
						</h:panelGroup>

						<h:panelGroup rendered="#{studentBean.wizard.page eq 8}">
							<h:outputText value="#{personBundle.contact}"/>
							<ui:decorate template="/facelets/template/person/contactEdit.xhtml">
								<ui:param name="record" value="#{studentBean.contact}"/>
								<ui:param name="idPrefix" value="studentContactWiz"/>
							</ui:decorate>
						</h:panelGroup>

						<h:panelGroup rendered="#{studentBean.wizard.page eq 9}">
							<h:outputText value="#{departmentBundle.department}"/>
							<ui:decorate template="/facelets/template/student/studentDepartmentEdit.xhtml">
								<ui:param name="idPrefix" value="studentDepartment"/>
								<ui:param name="student" value="#{studentBean}"/>
								<ui:param name="anyValue" value="true"/>
								<ui:define name="studentBookNumber">
									<ui:decorate template="studentBookNumber.xhtml">
										<ui:param name="student" value="#{studentBean}"/>
										<ui:param name="anyValue" value="true"/>
										<ui:param name="idPrefix" value="studentBook"/>
									</ui:decorate>
								</ui:define>
							</ui:decorate>
						</h:panelGroup>

						<h:panelGroup rendered="#{studentBean.wizard.page eq 10}">
							<h:outputText value="#{personBundle.education}"/>
							<ui:decorate template="/facelets/template/student/studentEducationEdit.xhtml">
								<ui:param name="idPrefix" value="student"/>
								<ui:param name="actionBean" value="#{studentBean.record}"/>
								<ui:param name="anyValue" value="true"/>
							</ui:decorate>
						</h:panelGroup>

						<h:panelGroup rendered="#{studentBean.wizard.page eq 11}">
							<h:outputText value="#{studentBundle.studentEnrollmentInfo}"/>
							<ui:decorate template="/facelets/template/student/studentEnrollmentEdit.xhtml">
								<ui:param name="idPrefix" value="studentEnrollment"/>
								<ui:param name="actionBean" value="#{studentBean}"/>
							</ui:decorate>
						</h:panelGroup>

					</ui:decorate>


				</ui:define>
			</ui:decorate>
		</ui:define>
	</ui:decorate>
</f:view>